const proxy = require('http-proxy-middleware');

if(process.env.NODE_ENV === "development"){
    // console.log(proxy)
    module.exports = function(app){
        app.use(
            "/dev",
            proxy({
                target: "http://192.168.129.1:10103/Web_PersonalCenter/",
                // target: "http://192.168.122.124:22101/message-center/",
                changeOrigin: true,
                pathRewrite:{ "^/dev":"" }
            })
        )
    }
    
}

// 